package com.starblink.android.basic.network.base

import com.starblink.android.basic.urllink.PullUpPageUtils


object BaseApiClient {


    fun isPub(): Boolean {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.NAME]?.equals("pub") ?: false
    }

    fun getCurrSvrCfgEnvName(): String? {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.NAME] as String
    }

    fun getCurrSiteName(): String? {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.SITE] as String
    }

    fun getCurrSvrCfgEnvDesc(): String {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.DESC] as String
    }

    fun getCurrSvrCfgEnvUrl(): String {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.URL] as String
    }

    fun getCurrSvrCfgEnvHost(): String {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.HOST] as String
    }

    fun getCurrSvrCfgEnvH5Host(): String {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.H5_HOST] as String
    }

    fun getCurrSvrCfgTrackerHost(): String {
        return BaseApiConfig.svrApiCfgEnv[BaseApiCodeAndUrl.TRACK_URL] as String
    }


    fun getPrivacyUrl(): String {
        return PullUpPageUtils.h5Url(BaseApiCodeAndUrl.PRIVACY_URL)
    }

    fun getTermsUrl(): String {
        return PullUpPageUtils.h5Url(BaseApiCodeAndUrl.TERMS_URL)
    }




}